<?php

include_once ("mysql_conn.php");
$id = $_GET['id'];
$name = $_GET['name'];
echo "update protype set name = '".$name."' where id = ".$id.";";
$conn = new mysql_conn();
$conn->add_upadate("update type set name = '".$name."' where id = ".$id.";");
echo "<script>alert('修改成功成功!');window.location='homeAdminTypes.php';</script>";
?>